]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[perf] Write UTC dates into performance logs
authorOwen W. Taylor <otaylor@fishsoup.net>
Wed, 26 May 2010 20:53:20 +0000 (16:53 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Wed, 26 May 2010 20:54:16 +0000 (16:54 -0400)
Instead of writing a local date without a timezone, write a UTC
date with a trailing Z.

src/gnome-shell.in

index 772a8cf6f38bf415a6acc2fbe68cc8e06a0ffb3f..2dfb4f3a0a4089fb2aa11c1c973fc53bcca1b7b1 100644 (file)
@@ -439,7 +439,7 @@ def run_performance_test():
         # version here for simplicity. Using json.dump(indent=0) doesn't real
         # improve the readability of the output much.
         report = {
-            'date': datetime.datetime.now().isoformat(),
+            'date': datetime.datetime.utcnow().isoformat() + 'Z',
             'events': events,
             'monitors': monitors,
             'metrics': metric_summaries,